﻿<wpfc:HostControl x:Class="Sobiens.SPCamlStudio.UI.Controls.CodeWizardForm"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:wpfc="clr-namespace:Sobiens.SPCamlStudio.UI.Controls"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="100*"/>
        </Grid.RowDefinitions>
        <TabControl HorizontalAlignment="Stretch" Margin="0,0,0,0" VerticalAlignment="Stretch" Grid.Row="0">
            <TabItem Header="View Relations">
                <Grid Background="#FFE5E5E5">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="30"></RowDefinition>
                        <RowDefinition Height="100*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="100*"></ColumnDefinition>
                        <ColumnDefinition Width="150"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <ComboBox Name="ViewComboBox" Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Top" Width="120" Margin="10,10,0,0" />
                    <Button Content="Add" Grid.Row="0" Name="AddButton" HorizontalAlignment="Left"  VerticalAlignment="Top" Width="75" Margin="150,10,0,0" Click="AddButton_Click" />
                    <TreeView Margin="10,10,10,10" Grid.Row="1" Name="ViewRelationsTreeView"/>
                    <Grid Grid.Row="1" Grid.Column="1">
                        <Label Name="MasterFieldDisplayNameTextLabel" Content="Display Name Field" Height="25" VerticalAlignment="Top" FontWeight="Bold"></Label>
                        <Label Name="MasterFieldDisplayNameValueLabel" Content="Display Name Field" Height="25" VerticalAlignment="Top" Margin="20,20,0,0"></Label>
                        <Label Name="MasterFieldValueNameTextLabel" Content="Value Name Field" Height="25" VerticalAlignment="Top" FontWeight="Bold" Margin="0,40,0,0"></Label>
                        <Label Name="MasterFieldValueNameValueLabel" Content="Value Name Field" Height="25" VerticalAlignment="Top" Margin="20,60,0,0"></Label>
                        <Label Name="DetailFieldNameTextLabel" Content="Detail Name Field" Height="25" VerticalAlignment="Top" FontWeight="Bold" Margin="0,80,0,0"></Label>
                        <Label Name="DetailFieldNameValueLabel" Content="Detail Name Field" Height="25" VerticalAlignment="Top" Margin="20,100,0,0"></Label>

                    </Grid>
                </Grid>
            </TabItem>
        </TabControl>

    </Grid>
</wpfc:HostControl>
